package com.gz.mapper;

import com.gz.entity.Monster;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MonsterMapper {
    public List<Monster> findMonsterByAge(@Param("age") Integer age);

    public List<Monster> findMonsterByIdAndName(Monster monster);

    //choose标签的使用
    public List<Monster> findMonsterByIdOrName(Map<String, Object> map);

    //foreach标签的使用
    public List<Monster> findMonsterById_foreach(Map<String, Object> map);

    //trim标签的使用(使用较少)
    public List<Monster> findMonsterByName_trim(Map<String, Object> map);

    //set标签的使用
    public void updateMonster_set(Map<String, Object> map);
}
